
import { get, post } from "@/api/http";

export const dirDictList = (data) =>
    post("/mg/api/private/dict/list", data);

export const dirDictDelete = (id) =>
    post("/mg/api/private/dict/delete", { id });

export const dirDictCreate = (data) =>
    post("/mg/api/private/dict/create", data);

export const dirDictUpdate = (data) =>
    post("/mg/api/private/dict/update", data);
export const getDict = (data) =>
    post(`/mg/api/public/admin/getDict`, { 'name': data });